package com.qf.dao;

import com.qf.entitys.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(String outTradeNo);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String outTradeNo);

    List<Order> queryByPrimaryKey(@Param("id") Integer id,@Param("outTradeNo")String outTradeNo);

    List<Order> selectPayBusiness(Integer id);

    List<Order> queryPayBusiness(@Param("id") Integer id, @Param("type")Integer type);

    List<Order> selectUserid(Integer id);

    Order selectByPrimaryKeyAndShipaddress(String outTradeNo);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> selectPayBusiness(Order order);

    List<Order> queryByPrimaryKeyAndType(@Param("id")Integer id, @Param("outTradeNo")String outTradeNo, @Param("type")Integer type);
}